package lab02.text28;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Text {
    public static void main(String[] args) {
        double radius=0;

        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入圆的半径：");

        try{
            radius=scanner.nextDouble();
        }catch (InputMismatchException e){
            System.out.println("类型不匹配！！");
        }

        System.out.println("圆的面积为："+3.14*radius*radius);
    }
}